/*
 * Copyright 2011 Drew Wilder-Goodwin
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
 */

#ifndef DXDIAGCOM_H
#define DXDIAGCOM_H

#include "resources.h"
#include <dxdiag.h>
#include <wchar.h>

typedef struct {
    WCHAR *szTimeEnglish;
    WCHAR *szMachineNameLocalized;
    WCHAR *szOSExLongEnglish;
    WCHAR *szLanguagesEnglish;
    WCHAR *szSystemManufacturerEnglish;
    WCHAR *szSystemModelEnglish;
    WCHAR *szBIOSEnglish;
    WCHAR *szProcessorEnglish;
    WCHAR *szPhysicalMemoryEnglish;
    WCHAR *szPageFileLocalized;
    WCHAR *szWindowsDir;
    WCHAR *szDirectXVersionLongEnglish;
    WCHAR *szSetupParamEnglish;
} DxDiag_SystemInfo;

typedef struct {
    DxDiag_SystemInfo *systemInfo;
} DxDiag_Root;

HRESULT DxDiagCOM_init(IDxDiagContainer ** dxRoot);
BOOL DxDiagCOM_ParseRoot(IDxDiagContainer * iContainer, DxDiag_Root * container);

#endif
